/*
 * HitTestInfo.java
 *
 * Created on 19. huhtikuuta 2007, 22:22
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package flowchart.editors;

/**
 *
 * @author jl
 */
public class HitTestInfo {
    
    // values from 1 to MAX-1 are reserved for handles
    public static final int NOHIT = 0;
    public static final int NOHANDLE = Integer.MAX_VALUE;
    
   public int code;
    public int offsx, offsy;
    
    /** Creates a new instance of HitTestInfo */
    public HitTestInfo(int code, int offsetX, int offsetY) {
        this.code = code;
        this.offsx = offsetX;
        this.offsy = offsetY;
    }
    
    public HitTestInfo(int code) {
        this(code, 0, 0);
    }
    
    public HitTestInfo() {
        this(NOHIT, 0, 0);
    }
    
    public int getCode() { return code; }
    
    public int getOffsetX() { return offsx; }
    
    public int getOffsetY() { return offsy; }
    
}
